<template>
  <div class="ModuleLayout">
    <div class="ModuleLayout--top">
      <div class="ModuleLayout--title" v-if="title !== ''">{{ title }}</div>
      <div>
        <slot name="moduleLayout-top"></slot>
      </div>
    </div>
    <div class="ModuleLayout--content">
      <slot></slot>
    </div>
  </div>
</template>

<script setup >
defineProps({
  title: {
    type: String,
    default: '',
  },
})
</script>

<style scoped lang="scss">
.ModuleLayout {
  padding: 24px 12px;
  .ModuleLayout--top{
    display: flex;
    justify-content: space-between;
    // align-items: center;
  }
  &--title {
    padding-left: 24px;
    margin-bottom: 16px;
    font-size: 18px;
    color: rgba(0, 0, 0, 0.85);
    line-height: 24px;
    font-weight: 600;
  }
  &--content {
  }
}
</style>
